package cn.cs.mapper;

import cn.cs.pojo.SysDtArea;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

@Mapper
public interface SysDtAreaMapper {

	public List<SysDtArea> getSysDtAreasByParId(@Param(value = "id") String id)throws Exception;

	public List<SysDtArea>	getSysDtAreaListByMap(Map<String, Object> param)throws Exception;

	public Integer getSysDtAreaCountByMap(Map<String, Object> param)throws Exception;

	public Integer insertSysDtArea(SysDtArea sysDtArea)throws Exception;

	public Integer updateSysDtArea(SysDtArea sysDtArea)throws Exception;

	public Integer deleteSysDtAreaById(@Param(value = "id") Long id)throws Exception;

	public Map<String, Object>	getAreaLastById(@Param(value = "id") String id)throws Exception;


	public Map<String,Object> getSysDtAreaById(String id);

	public List<Map<String,Object>> getAgentManageProAreas(@RequestBody  Map<String, Object> param);

	public List<Map<String, Object>> getProvinceList() throws Exception;

	public List<Map<String, Object>> getCityListByPid(@Param(value = "pId") String pId) throws Exception;

	public List<Map<String, Object>> getAreaListByPid(@Param(value = "pId") String pId, @Param(value = "list") List<Map<String, Object>> list) throws Exception;

	public List<Map<String, Object>> getAreasListByPid(@Param(value = "pId") String pId) throws Exception;

	public Map<String, Object> getCityNameByAreaId(@Param(value = "areaId") String areaId) throws Exception;

	public List<Map<String, Object>> getAreaProvince(@Param(value = "list") List<Map<String, Object>> list) throws Exception;

	public List<Map<String, Object>> getAreaCity(@Param(value = "list") List<Map<String, Object>> list, @Param(value = "pId") String pId) throws Exception;

	public List<Map<String, Object>> getAreaArea(@Param(value = "list") List<Map<String, Object>> list, @Param(value = "pId") String pId) throws Exception;

	public List<Map<String, Object>> getAreaListByProvinceId(@Param(value = "areaId") String areaId) throws Exception;

	public List<Map<String, Object>> getAreaListByCityId(@Param(value = "areaId") String areaId) throws Exception;

	public List<Map<String, Object>> getAreaListById(@Param(value = "areaId") String areaId) throws Exception;




}
